/* api请求用到的常量值
 * Constants.js
 */
//http://xiaoweimeng.com/index.php/api/login/login/email/test@qq.com/password/123456
//http://xiaoweimeng.com/index.php/manage/h5edit/index.html

//http://api.g.jiaxunyouneng.com/login/login/email/test@qq.com/password/123456
//http://g.jiaxunyouneng.com/manage/h5edit/index.html

let url;
/*本机*/
if(__DEV__){
	
	url={
		'UPLOAD_IMAGE_URL':'http://xiaoweimeng.com/index.php/upload/picture',
		'IMAGE_LIST_URL':'http://xiaoweimeng.com/index.php/api/file.picture/alist',
		'IMAGE_CATEGORY_URL':'http://xiaoweimeng.com/index.php/api/category.picture/alist',

		'H5_PREVIEW_CONTENT':'http://xiaoweimeng.com/index.php/manage/h5edit/preview',
		'H5_SAVE_DATA':'http://xiaoweimeng.com/index.php/manage/h5edit/save',
		'H5_GET_DATA':'http://xiaoweimeng.com/index.php/manage/h5edit/h5EditData',
		'H5_GET_LIST':'http://xiaoweimeng.com/index.php/manage/h5edit/h5list',
		'H5_DELETE_DATA':'http://xiaoweimeng.com/index.php/manage/h5edit/destory',
		'H5_UPDATE_TITLE':'http://xiaoweimeng.com/index.php/manage/h5edit/updateTitle',
		'H5_GET_PUBLIC_DATA':'http://xiaoweimeng.com/index.php/manage/h5edit/h5PublicData',
		'H5_PUBLIC':'http://xiaoweimeng.com/index.php/manage/h5edit/publicH5',
		'H5_OFFLINE':'http://xiaoweimeng.com/index.php/manage/h5edit/offlineH5',
		'H5_SET_MODAL':'http://xiaoweimeng.com/index.php/manage/h5edit/setModal',
		'H5_DELETE_MODAL':'http://xiaoweimeng.com/index.php/manage/h5edit/deleteModal',
		'H5_MODAL_LIST':'http://xiaoweimeng.com/index.php/manage/h5edit/h5modalList',
		'H5_COPY_DATA':'http://xiaoweimeng.com/index.php/manage/h5edit/copy',

		'UPLOAD_AUDIO_URL':'http://xiaoweimeng.com/index.php/upload/audio',
		'AUDIO_LIST_URL':'http://xiaoweimeng.com/index.php/api/file.audio/alist',
		'AUDIO_CATEGORY_URL':'http://xiaoweimeng.com/index.php/api/category.audio/alist',

		'UPLOAD_FILE_URL':'http://xiaoweimeng.com/index.php/upload/file',
		'FILE_LIST_URL':'http://xiaoweimeng.com/index.php/api/file.files/alist',
		'FILE_CATEGORY_URL':'http://xiaoweimeng.com/index.php/api/category.file/alist',

		'H5TPL_CATEGORY_URL':'http://xiaoweimeng.com/index.php/api/category.h5tpl/alist',
		
	}
}else{
	/*服务器*/
	url={
		'UPLOAD_IMAGE_URL':'http://upload.g.jiaxunyouneng.com/picture',
		'IMAGE_LIST_URL':'http://api.g.jiaxunyouneng.com/file.picture/list',
		'IMAGE_CATEGORY_URL':'http://api.g.jiaxunyouneng.com/category.picture/list',
		'H5_PREVIEW_CONTENT':'http://g.jiaxunyouneng.com/manage/h5edit/preview',
		'H5_SAVE_DATA':'http://g.jiaxunyouneng.com/manage/h5edit/save',
		'H5_GET_DATA':'http://g.jiaxunyouneng.com/manage/h5edit/h5EditData',
		'H5_GET_LIST':'http://g.jiaxunyouneng.com/manage/h5edit/h5list',
		'H5_DELETE_DATA':'http://g.jiaxunyouneng.com/manage/h5edit/destory',
		'H5_UPDATE_TITLE':'http://g.jiaxunyouneng.com/manage/h5edit/updateTitle',
		'H5_GET_PUBLIC_DATA':'http://g.jiaxunyouneng.com/manage/h5edit/h5PublicData',
		'H5_PUBLIC':'http://g.jiaxunyouneng.com/manage/h5edit/publicH5',
		'H5_OFFLINE':'http://g.jiaxunyouneng.com/manage/h5edit/offlineH5',
		'H5_FORM_DATA_LIST':'http://g.jiaxunyouneng.com/manage/h5edit/getFormData',
		'UPLOAD_AUDIO_URL':'http://upload.g.jiaxunyouneng.com/audio',
		'AUDIO_LIST_URL':'http://api.g.jiaxunyouneng.com/file.audio/list',
		'AUDIO_CATEGORY_URL':'http://api.g.jiaxunyouneng.com/category.audio/list',
		'UPLOAD_FILE_URL':'http://upload.g.jiaxunyouneng.com/file',
		'FILE_LIST_URL':'http://api.g.jiaxunyouneng.com/file.files/list',
		'FILE_CATEGORY_URL':'http://api.g.jiaxunyouneng.com/category.file/list',
		'H5_SET_MODAL':'http://g.jiaxunyouneng.com/manage/h5edit/setModal',
		'H5_DELETE_MODAL':'http://g.jiaxunyouneng.com/manage/h5edit/deleteModal',
		'H5_MODAL_LIST':'http://g.jiaxunyouneng.com/manage/h5edit/h5modalList',
		'H5_COPY_DATA':'http://g.jiaxunyouneng.com/manage/h5edit/copy',
		'H5TPL_CATEGORY_URL':'http://api.g.jiaxunyouneng.com/category.h5tpl/list',
	}
}
export const REQUEST_URL=url;

